﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XQ.Framework.core
{
    public sealed class EngineContext
    {
        private static readonly object EngineLock = new object();
        private static EngineContext instance = null;
        public EngineContext SingleInstance()
        {
            if (instance == null)
            {
                lock (EngineLock)
                {
                    if (instance == null)
                    {
                        instance = new EngineContext();
                    }
                }
            }
            return instance;
        }
    }
}
